<table width="100%" cellpadding="0" cellspacing="0" border="0">
    <thead>
        <tr>
            {if $arrResult && isset($smarty.session.user) && ( (($smarty.session.user&1<<3)>0) || (($smarty.session.user&1<<4)>0) )}
                <th class="firstChild" width="30"><input type="checkbox" name="pcheckall" id="pcheckall" onclick="javascript:checkAll(this.form,'puserid[]',this.checked);"/></th>
                <th width="85">Hình đại diện</th>
            {else}
                <th class="firstChild" width="85">Hình đại diện</th>
            {/if}                                       
            <th width="200">Email</th>
            <th>Thông tin</th>
            {if $arrResult && isset($smarty.session.user)}
                <th width="100">&nbsp;</th>
            {/if}
        </tr>
    </thead>
    <tbody>
        {if $arrResult}
            {foreach item=item from=$arrResult}
                <tr class="{cycle values="odd,even"}">
                    {if isset($smarty.session.user) && ((($smarty.session.user&1<<3)>0) || (($smarty.session.user&1<<4)>0))}
                        <td class="firstChild" align="center"><input type="checkbox" id="puserid{$item.userid}" name="puserid[]" value="{$item.userid}" onclick="javascript:checkOneItem(this.form, 'pcheckall')"/></td>
                        <td>{image path=$item.image_path type=1 small=1}</td>
                    {else}
                        <td class="firstChild">{image path=$item.image_path type=1 small=1}</td>
                    {/if}
                    <td>
                    	{$item.email}
                        {if $strAction == "waiting"}
                        	<div class="topLine">
                            	<span class="firstItem">Đăng ký:</span>
                            	<span class="lastItem">{$item.postdate|date_format:"%d/%m/%Y %H:%M:%S"}</span>
                            </div>
                        {else}
                        	<div class="topLine">
                            	<span class="firstItem">Đăng nhập:</span>
                            	<span class="lastItem">{$item.lastlogin|date_format:"%d/%m/%Y %H:%M:%S"}</span>
                            </div>
                        {/if}
                    </td>
                    <td> 
                        <div>
                            <span class="firstItem">Họ &amp; tên:</span>
                            <span class="lastItem">{$item.fullname} ({$item.ages} tuổi)</span>
                        </div> 
                        {if $item.username} 
                        <div class="topLine">
                            <span class="firstItem">Username:</span>
                            <span class="lastItem">{if $item.username}{$item.username}{else}----//----{/if}</span>
                        </div> 
                        {/if}                                          	
                        <div class="topLine">
                            <span class="firstItem">Giới tính:</span>
                            <span class="lastItem">{$arrGender[$item.gender]}</span>
                        </div>
                        {if  $item.address || $item.district_name || $item.province_name || $item.country_name}
                            <div class="topLine">
                                <span class="firstItem">Địa chỉ:</span>
                                <span class="lastItem">
                                    {if $item.address}{$item.address},&nbsp;{/if}
                                    {if $item.district_name}{$item.district_name},&nbsp;{/if}
                                    {if $item.province_name}{$item.province_name},&nbsp;{/if}
                                    {if $item.country_name}{$item.country_name}{/if}
                                </span>
                            </div>
                        {/if}
                        {if $item.mobile}
                            <div class="topLine">
                                <span class="firstItem">Di động:</span> 
                                <span class="lastItem">{$item.mobile} ({if ($item.verified&1<<1)>0}Đã{else}Chưa{/if} chứng thực)</span>
                            </div>
                        {/if}
                        {if $item.introduce}
                            <div class="topLine">{$item.introduce|strip_tags}</div>
                        {/if}
                    </td>
                    <td align="center">
                        {if isset($smarty.session.user)}
                            {if ($smarty.session.user&1<<0)>0}
                                <a href="{$smarty.const.HOST_BACKEND}user/detail?userid={$item.userid}&amp;statuses={$item.statuses}&amp;page={$smarty.get.page}" title="Xem thông tin chi tiết">
                                    <img src="{$smarty.const.HOST_STATICS}img/icon/ad-link.png" alt="Detail" border="0" width="16" height="16" />
                                </a>
                            {/if}
                            {if isset($smarty.session.photo) && $smarty.session.photo>0}
                                <a href="{$smarty.const.HOST_BACKEND}photo/user?userid={$item.userid}&amp;statuses={$item.statuses}&amp;page={$smarty.get.page}" title="Bộ sưu tập ảnh">
                                    <img src="{$smarty.const.HOST_STATICS}img/icon/ad-album.png" alt="Album" border="0" width="16" height="16" />
                                </a>
                            {/if}
                            {if ($smarty.session.user&1<<2)>0}
                                <a href="{$smarty.const.HOST_BACKEND}user/edit?userid={$item.userid}&amp;statuses={$item.statuses}&amp;page={$smarty.get.page}" title="Cập nhật thông tin">
                                    <img src="{$smarty.const.HOST_STATICS}img/icon/ad-edit.png" alt="Edit" border="0" width="16" height="16" />
                                </a>
                                <a href="{$smarty.const.HOST_BACKEND}user/changepass?userid={$item.userid}&amp;statuses={$item.statuses}&amp;page={$smarty.get.page}" title="Thay đổi mật khẩu">
                                    <img src="{$smarty.const.HOST_STATICS}img/icon/ad-change-password.png" alt="Change password" border="0" width="16" height="16" />
                                </a>
                            {/if}
                            
                        {else}
                            &nbsp;
                        {/if}
                    </td>
                </tr>
            {/foreach}
        {else}
        	<tr><td colspan="3" align="center">Không có dữ liệu</td></tr>
        {/if}
    </tbody>
</table>